import axios from './axiosFun';


//获取这个人的所有地址信息
export const getAddress = (param) => {return axios.get("/address/list?userId="+param)}

//添加地址
export const addAddress = (params) => {return axios.post("/address/addAddress",params)}

//编辑地址
export const editAddress = (params) => {return axios.post("/address/editAddress",params)}

//删除地址
export const delAddress = (param) => {return axios.get("/address/deleteById?id="+param)}


//获取选择的这行的地址信息
export const getAddressById = (param) => {return axios.get("/address/getOneAddress?id="+param)}
